#!/bin/sh
#

# 获取当前commit信息
msg=`cat $1`
# 获取当前分支名称
branch_name=`git branch --show-current`
# 若当前提交信息中不包含当前分支名称，则中止commit
if [[ "$msg" != *"$branch_name"* ]]; then
	echo "warn:commit log must include branch name!!!!!!!!!"
	exit 1
fi
